﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EmailSender.Models;
using MN.Framework.Common;
using Mn.Framework.Web.Mvc;
using EntityState = System.Data.EntityState;

namespace EmailSender.Controllers
{
    public class SmtpServerController : MnEntityController<SmtpServerModel>
    {
        private EmailContext db = new EmailContext();

        public ActionResult Index()
        {
            return View(db.SmtpServer.ToList());
        }

        public override BaseContext DbContext
        {
            get { return db; }
        }
    }
}